home *** CD-ROM | disk | FTP | other *** search
/ Atomic Clock 6 / Atomic Clock 6.iso / Unlock / CDM / start.cfg < prev    next >
Encoding:
Text File  |  2002-02-06  |  1.4 KB  |  58 lines

  1. //embed-head//
  2.  
  3. // Check for admin rights
  4. set $4 to isadmin ""
  5. goto @adminerr if equal {$4} "0"
  6.  
  7. // Check to see if Screen Shot 4 is installed
  8. set $4 to registry "SOFTWARE\NewTech Infosystems\NTI CD-Maker Deluxe" "Directory"
  9. goto @runapp if not equal {$4} ""
  10.  
  11. // Launch preview screen
  12. child preview.exe
  13.  
  14. @presetup
  15.  
  16. // Start setup if product has been purchased
  17. set $4 to inifile {%windir}win.ini "TLC Options" "$sel9cdm"
  18. goto @setup if not equal {$4} ""
  19.  
  20. // Exit if User does not want to start trial
  21. set $4 to inifile {%windir}win.ini "TLC Options" "*sel9cdm"
  22. goto @menu if equal {$4} ""
  23.  
  24.  
  25. @setup
  26.     set $4 to tempfile {%temp}
  27.     mkdir {$4}
  28.     copy source.ini {$4}\source.ini
  29.     copy start.exe {$4}\postinstall.exe
  30.     copy postinstall.cfg {$4}\postinstall.cfg
  31.     registry "Software\Microsoft\Windows\CurrentVersion\RunOnce" "sel9cdm" {$4}"\postinstall.exe"
  32.  
  33.     // install the application
  34.     child INSTALL\SETUP.EXE -sms
  35.     goto @done
  36.  
  37. @runapp
  38. set $4 to registry "SOFTWARE\NewTech Infosystems\NTI CD-Maker Deluxe" "Directory"
  39. goto @error if equal {$4} ""
  40. child {$4}"\cdmkr32.exe"
  41. goto @done
  42.  
  43. @adminerr
  44. message "Error" "We're sorry, you must be an administrator to install or run this program.  Please log on as an administrator and try again."
  45. goto @menu
  46.  
  47. @error
  48. message "ERROR" "There has been an error and we are unable to perform the requested action."
  49. goto @menu
  50.  
  51. @menu
  52. run ..\autorun.exe
  53. goto @done
  54.  
  55. @done
  56. stop
  57.  
  58. //embed-tail//